package tests;
import static rayCaster.ApplicationInterface.*;
import static helper.Util.*;
import rayCaster.ImagePlate;
import rayCaster.Pixel;


public class TestImagePlate {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		int width = WIDTH;		
		int height = HEIGHT;
		ImagePlate plate = new ImagePlate(width, height);
		//int half_width = width/2;		
		
		int i=0;
		for  (int y = 0; y < height; y++) {
			for ( int x = 0; x < width; x++) {
				int red = 200;
				int green = 100;
				int blue = 100;				
		        int alpha = 100; // non-transparent		        
		        plate.setPixel( x, y, new Pixel(alpha, red, green, blue) );
		        i++;		        		        
			}
		}
		
		//System.out.println(plate);		
		
		saveImage(plate, "imagePlateTest", "png");
		saveImage(plate, "imagePlateTest", "bmp");
		System.out.println("OK");
	}

}
